<%@ include file="/common/taglibs.jsp"%>

<div id="branding">
	<a href="<c:url value='/'/>"><img src="<c:url value='/images/logo.png'/>" style="9px auto auto -25px" alt="Clear Profiling" /></a>
</div>

<!-- Menu -->
<c:set var="currentMenu" scope="request"><!--decorator:getProperty property="meta.menu"/--></c:set>
<!--Comment above eliminates reporting of repeated NPExceptions-->
<!--at com.opensymphony.module.sitemesh.taglib.decorator.PropertyTag.doEndTag(PropertyTag.java:64)-->


<c:if test="${currentMenu == 'AdminMenu'}">
<div id="sub">
	<menu:useMenuDisplayer name="Velocity" config="cssVerticalMenu.vm" permissions="rolesAdapter">
		<menu:displayMenu name="AdminMenu"/>
	</menu:useMenuDisplayer>
</div>
</c:if>
            
<!-- Start user profile-->
<c:if test="${pageContext.request.remoteUser != null}">
	<div class="userprofile_section">
		<div class="userprofile_content">
			| 
			${pageContext.request.remoteUser}
			| <a href="logout.jsp" title="<fmt:message key='user.logout'/>"><img src="<c:url value='/images/logout-icon.png'/>" /></a>
			<a href="logout.jsp" title="<fmt:message key='user.logout'/>"><fmt:message key="user.logout"/></a>
		</div>
	</div>
</c:if>


<c:if test="${not empty pageContext.request.remoteUser}"> <%-- Display menu only if authenticated user --%>
	<div id="nav">
		<div class="wrapper">
			<jsp:include page="/common/menu.jsp"/>
		</div>
	</div>
</c:if>

<%-- Put constants into request scope --%>
<appfuse:constants scope="request"/>
